package com.zy.dubbo.demo.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zy.dubbo.demo.user.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * UserMapper
 *
 * @author Robbin Zhao
 * @since 2020-12-10
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    List<User> getByName(@Param("name") String name);

    List<User> queryUserList(Page<User> page, @Param("name") String name);
}
